package org.study.bookmanagerclientbyswing.utils;

public class JwtUtil {
    private static JwtUtil instance;
    private String jwtToken;
    private String userName;

    public static synchronized JwtUtil getInstance() {
        if (instance == null) {
            instance = new JwtUtil();
        }
        return instance;
    }

    public void setJwtToken(String token) {
        this.jwtToken = token;
    }

    public String getJwtToken() {
        return jwtToken;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }
}
